﻿namespace Jim.K3Cloud;

/// <summary>
/// 根据一个单据ID获取单据转换流程中的源单或目标单
/// </summary>
[Sdk("Kingdee.BOS.ServiceFacade.ServicesStub.Metadata.ConvertService.GetConvertBills", "根据一个单据ID获取单据转换流程中的源单或目标单")]
public class K3CloudGetConvertBillsRequest : ISdkRequest<K3CloudGetConvertBillsResponse>
{
    /// <summary>
    /// 操作类型，ConvertPush:下推/ ConvertDraw:上拉
    /// </summary>
    public string Op { get; set; }
    /// <summary>
    /// 源/目标单据ID，如果类型为下推，则formID为源单据，否则为目标单据
    /// </summary>
    public string FormID { get; set; }
    /// <summary>
    /// 是否仅包含默认规则启动的单据
    /// </summary>
    public bool IsOnlyDefault { get; set; } = true;

    public void Validate()
    {
    }
}


public class K3CloudGetConvertBillsResponse: SdkResponse<List<K3CloudGetConvertBillsResponseData>>
{
}

public class K3CloudGetConvertBillsResponseData
{
    public string FormID { get; set; }
    public int X { get; set; }
    public int Y { get; set; }
    public int ConvertBillType { get; set; }
    [JsonConverter(typeof(LocaleValueConverter))]
    public string Name { get; set; }
    public string IsInheritElement { get; set; }
    public string Id { get; set; }
    public string Key { get; set; }
    public string HelpContextId { get; set; }
    public string OriginKey { get; set; }
    public int ElementType { get; set; }
    public int BusinessServiceType { get; set; }
}
